#!/usr/bin/env python
# encoding: utf-8
'''
@author: liuchong
@contact: lucas@peipeiyun.com
@software: garner
@file: byd.py
@time: 2020/8/13 2:58 下午
@desc:
'''

from .basemodel import BaseModel
from peewee import *

class Byd(BaseModel):

    #产品编码	OE号	名称	适用车型	品牌

    article_brand = CharField(max_length=60,default='',verbose_name='品牌名称',help_text='品牌名称')
    standard_name = CharField(max_length=32,default='',verbose_name='标准名称全称',help_text='标准名称全称')

    input_oe = CharField(max_length=32, default='', verbose_name='用户输入OE', help_text='用户输入OE')
    corr_oe = CharField(max_length=32, default='', verbose_name='准确OE', help_text='准确OE')

    code = CharField(max_length=30,default='',index=True,verbose_name='产品编码',help_text='产品编码')
    car_names = CharField(max_length=1024,default='',verbose_name='车型信息',help_text='车型信息')

    brand_code = CharField(max_length=30, default='', index=True, verbose_name='品牌编码', help_text='品牌编码')
    is_exist = BooleanField(default=False, verbose_name='是否存在', help_text='是否存在')
    sale_cars_count = IntegerField(default=0, verbose_name='销售车数量', help_text='销售车数量')
    origin_name = CharField(max_length=30, default='',  verbose_name='原厂名称', help_text='原厂名称')

    remark = CharField(max_length=128,default='',verbose_name='审核意见',help_text='审核意见')

    class Meta:
        table_name = 'byd'
        verbose_name= '产品列表'

